import sys

def fac(num):
    if num == 0:
        return 1
    return num * fac(num - 1)

def main():
    print(fac(5996))

if __name__ == '__main__':
    sys.setrecursionlimit(6000)
    main()